package com.atom.module.common.result;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */

public class PageResult implements Serializable {

    private long total; //总记录数

    private List<?> records; //当前页数据集合

    public PageResult() {
    }

    public PageResult(List<?> records, long total) {
        this.records = records;
        this.total = total;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<?> getRecords() {
        return records;
    }

    public void setRecords(List<?> records) {
        this.records = records;
    }
}
